<div class="pageHeader">
  <form onsubmit="return navTabSearch(this);" action="#{$smarty.const.ACT}#/PosOrder/pos_order_show/" method="post">
    <div class="searchBar">
      <table class="searchContent">
        <tr>
          <td> 客户名称：
            <input type="text" name="cus_name" size="15" /></td>
          <td><select class="combox" name="searchKeyword">
              <option value="title">主题</option>
              <option value="intro">内容</option>
            </select></td>
          <td><input type="text" name="searchValue" /></td>
          <td> 联系时间：
            <input type="text" class="date" name="bdt" size="15" readonly /> -<input type="text" class="date" name="edt" size="15" readonly /></td>
          <td><ul>
              <li>
                <div class="buttonActive">
                  <div class="buttonContent">
                    <button type="submit">检索</button>
                  </div>
                </div>
              </li>
            </ul></td>
        </tr>
      </table>
      <div class="subBar"></div>
    </div>
  </form>
</div>
<div class="pageContent">
  <div class="panelBar">
    <ul class="toolBar">
      <li><a class="add" href="#{$smarty.const.ACT}#/PosOrder/pos_order_add/" target="dialog" rel="pos_order_add" width='800' height='500' title="采购订单添加"><span>添加</span></a></li>
      <li class="line">line</li>
      <li><a class="delete" href="#{$smarty.const.ACT}#/PosOrder/pos_order_del/" postType="string" title="确实要删除这些记录吗?" target="selectedTodo" rel="ids" ><span>批量删除</span></a></li>
      <li class="line">line</li>
      <li><a class="edit" href="#{$smarty.const.ACT}#/PosOrder/pos_order_modify/id/{sid_user}/" target="dialog" rel="pos_order_modify" title="采购订单修改" width='850' height='450'><span>修改</span></a></li>
      <li class="line">line</li>
    </ul>
  </div>
  <table class="table" width="100%" layoutH="138">
    <thead>
      <tr>
        <th width="22"><input type="checkbox" group="ids" class="checkboxCtrl"></th>
        <th width="150">主题</th>
        <th width="100">订单编号</th>
        <th width="120">客户名称</th>
        <th width="80">联系人</th>
        <th width="100">采购时间</th>
        <th width="100">预计到货时间</th>
        <th width="80">总金额</th>
        <th width="80">去零金额</th>
        <th width="80">付款金额</th>
        <th width="80">入库金额</th>
        <th width="80">已收票金额</th>
        <th width="60">我方代表</th>
        <th width="60">订单状态</th>
        <th width="80">付款状态</th>
        <th width="80">收货状态</th>
        <th width="80">开票状态</th>
        <th width="80">操作</th>
      </tr>
    </thead>
    <tbody>
    
    #{foreach from=$list key=k item=v}#
    <tr target="sid_user" rel="#{$v.id}#">
      <td><input name="ids" value="#{$v.id}#" type="checkbox"></td>
      <td>#{$v.title}#</td>
      <td><a target="dialog"  href="#{$smarty.const.ACT}#/PosOrder/pos_order_show_one/id/#{$v.id}#/" rel="pos_order_show_one" title="采购订单详细:#{$v.pos_number}#-#{$supplier[$v.supID]}#" width="880" height="480">#{$v.pos_number}#</a></td>
      <td>#{$supplier[$v.supID]}#</td>
      <td>#{$linkman[$v.linkmanID]}#</td>
      <td>#{$v.bdt}#</td>
      <td>#{$v.edt}#</td>
      <td>#{$v.money}#</td>
      <td>#{$v.zero_money}#</td>
      <td>#{$v.pay_money}#</td>
      <td>#{$v.into_money}#</td>
      <td>#{$v.bill_money}#</td>
      <td>#{$users[$v.our_userID]}#</td>
      <td>#{$status[$v.status]}#</td>
      <td>#{$pay_status[$v.pay_status]}#</td>
      <td>#{$into_status[$v.into_status]}#</td>
      <td>#{$bill_status[$v.bill_status]}#</td>
      <td>#{$operate[$v.id]}#</td>
    </tr>
    #{/foreach}#
      </tbody>
    
  </table>
  <div class="panelBar">
    <form id="pagerForm" method="post" action="#{$smarty.const.ACT}#/PosOrder/pos_order_show/">
      <input type="hidden" name="pageNum" value="1" />
      <input type="hidden" name="numPerPage" value="#{$numPerPage}#" />
      <input type="hidden" name="orderField" value="${param.orderField}" />
    </form>
    <div class="pages"> <span>显示</span>
      <select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
        <option value="20" #{if $numPerPage eq '20'}# selected="selected" #{/if}#>20</option>
        <option value="50" #{if $numPerPage eq '50'}# selected="selected" #{/if}#>50</option>
        <option value="100" #{if $numPerPage eq '100'}# selected="selected" #{/if}#>100</option>
        <option value="200" #{if $numPerPage eq '200'}# selected="selected" #{/if}#>200</option>
        <option value="500" #{if $numPerPage eq '500'}# selected="selected" #{/if}#>500</option>
      </select>
      <span>条，共#{$totalCount}#条</span> </div>
    <div class="pagination" targetType="navTab" totalCount="#{$totalCount}#" numPerPage="#{$numPerPage}#" pageNumShown="10" currentPage="#{$currentPage}#"></div>
  </div>
</div>
